/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package fwdisp.gui.tabs.statistics;

import fwdisp.gui.moduls.SecRowPanel;
import java.awt.BorderLayout;
import org.jfree.chart.ChartFactory;
import org.jfree.chart.ChartPanel;
import org.jfree.chart.JFreeChart;
import org.jfree.data.general.DefaultPieDataset;

/**
 *
 * @author rbs
 */
public class TypeStatisticsPanel extends SecRowPanel{

    public TypeStatisticsPanel() {
        setName("E-Art");

        setLayout(new BorderLayout());

        DefaultPieDataset data = new DefaultPieDataset();
        data.setValue("Brand 1", 10);
        data.setValue("Brand 2", 13);
        data.setValue("Brand 3", 2);
        data.setValue("TH 1", 4);
        data.setValue("TH 2", 18);
        data.setValue("TH 3", 1);
        data.setValue("Türnot", 10);

        JFreeChart chart = ChartFactory.createPieChart3D("Einsatztypen", data,
                false, false, false);

        chart.setBackgroundPaint(getBackground());


        ChartPanel panel = new ChartPanel(chart);
        
        panel.setPopupMenu(null);
        panel.setBackground(getBackground());
        
        add(panel, BorderLayout.CENTER);

    }


}
